﻿using System;
using System.Collections.Generic;
using System.Text;
using Dogs.Model;

namespace Animals.Model
{
    public class Animal
    {
        private long _id;
        private string _name;
        private DateTime _birthDate;
        private bool _isMale;
        private ParentsPair _parents;

        public long Id
        {
            get { return _id; }
            set { _id = value; }
        }
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public DateTime BirthDate
        {
            get { return _birthDate; }
            set { _birthDate = value; }
        }

        public bool Gender
        {
            get { return _isMale; }
            set { _isMale = value; }
        }

        public ParentsPair Parents
        {
            get { return _parents; }
            set { _parents = value; }
        }

        public Animal(long Id, string Name, DateTime BirthDate, bool Gender, ParentsPair Parents)
        {
            this._id = Id;
            this._name = Name;
            this._birthDate = BirthDate;
            this._isMale = Gender;
            this._parents = Parents;
        }

        public Animal()
        {
            // Empty default constructor for serialization
        }
    }
}
